/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * newMember.java
 *
 * Created on 29-Sep-2010, 15:59:27
 */

package COMIC_BOOK_STORE;
import java.sql.*;
import javax.swing.JComboBox;
import javax.swing.JOptionPane;

/**
 *
 * @author benson
 */
public class MEMBER_ADD extends javax.swing.JFrame {

    /** Creates new form newMember */
    public MEMBER_ADD() {
        super("ADD MEMBER");
        initComponents();
        this.setLocationRelativeTo(null);
        jTextArea1.setEditable(false);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        genderGroup = new javax.swing.ButtonGroup();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        newMember = new javax.swing.JPanel();
        addButton = new javax.swing.JButton();
        mainMenukButton = new javax.swing.JButton();
        nameLabel = new javax.swing.JLabel();
        firstNameTextField = new javax.swing.JTextField();
        contactNumberLabel = new javax.swing.JLabel();
        contactNumberTextField = new javax.swing.JTextField();
        icNumberTextField = new javax.swing.JTextField();
        ICNumberLabel = new javax.swing.JLabel();
        addressLabel = new javax.swing.JLabel();
        apartmentHouseNumberLabel = new javax.swing.JLabel();
        complexGardenLabel = new javax.swing.JLabel();
        postCodeLabel = new javax.swing.JLabel();
        apartmentHouseNoTextField = new javax.swing.JTextField();
        complexGardenTextField = new javax.swing.JTextField();
        postCodeTextField = new javax.swing.JTextField();
        genderLabel = new javax.swing.JLabel();
        femaleRadioButton = new javax.swing.JRadioButton();
        maleRadioButton = new javax.swing.JRadioButton();
        DOBLabel = new javax.swing.JLabel();
        ddComboBox = new javax.swing.JComboBox();
        mmComboBox = new javax.swing.JComboBox();
        yyyyComboBox = new javax.swing.JComboBox();
        streetRoadLAbel = new javax.swing.JLabel();
        cityLabel = new javax.swing.JLabel();
        stateLabel = new javax.swing.JLabel();
        streetRoadTextField = new javax.swing.JTextField();
        cityTextField = new javax.swing.JTextField();
        stateTextField = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jLabel1 = new javax.swing.JLabel();
        lastNameTextField = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        newMember.setPreferredSize(new java.awt.Dimension(903, 460));
        newMember.setLayout(null);

        addButton.setText("ADD");
        addButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addButtonActionPerformed(evt);
            }
        });
        newMember.add(addButton);
        addButton.setBounds(430, 410, 110, 40);

        mainMenukButton.setText("MAIN MENU");
        mainMenukButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mainMenukButtonActionPerformed(evt);
            }
        });
        newMember.add(mainMenukButton);
        mainMenukButton.setBounds(550, 410, 110, 40);

        nameLabel.setText("First Name");
        newMember.add(nameLabel);
        nameLabel.setBounds(10, 14, 51, 14);

        firstNameTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                firstNameTextFieldActionPerformed(evt);
            }
        });
        firstNameTextField.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
                firstNameTextFieldCaretPositionChanged(evt);
            }
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
                firstNameTextFieldInputMethodTextChanged(evt);
            }
        });
        newMember.add(firstNameTextField);
        firstNameTextField.setBounds(130, 10, 202, 20);

        contactNumberLabel.setText("Contact Number");
        newMember.add(contactNumberLabel);
        contactNumberLabel.setBounds(10, 150, 78, 14);

        contactNumberTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                contactNumberTextFieldActionPerformed(evt);
            }
        });
        newMember.add(contactNumberTextField);
        contactNumberTextField.setBounds(130, 150, 202, 20);

        icNumberTextField.addCaretListener(new javax.swing.event.CaretListener() {
            public void caretUpdate(javax.swing.event.CaretEvent evt) {
                icNumberTextFieldCaretUpdate(evt);
            }
        });
        icNumberTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                icNumberTextFieldActionPerformed(evt);
            }
        });
        icNumberTextField.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                icNumberTextFieldFocusLost(evt);
            }
        });
        newMember.add(icNumberTextField);
        icNumberTextField.setBounds(130, 190, 202, 20);

        ICNumberLabel.setText("IC Number ");
        newMember.add(ICNumberLabel);
        ICNumberLabel.setBounds(10, 190, 54, 14);

        addressLabel.setText("Address");
        newMember.add(addressLabel);
        addressLabel.setBounds(10, 260, 39, 14);

        apartmentHouseNumberLabel.setText("Apartment/House No");
        newMember.add(apartmentHouseNumberLabel);
        apartmentHouseNumberLabel.setBounds(20, 290, 101, 14);

        complexGardenLabel.setText("Complex/Garden");
        newMember.add(complexGardenLabel);
        complexGardenLabel.setBounds(20, 320, 80, 14);

        postCodeLabel.setText("Post code");
        newMember.add(postCodeLabel);
        postCodeLabel.setBounds(20, 350, 47, 14);
        newMember.add(apartmentHouseNoTextField);
        apartmentHouseNoTextField.setBounds(160, 290, 194, 20);

        complexGardenTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                complexGardenTextFieldActionPerformed(evt);
            }
        });
        newMember.add(complexGardenTextField);
        complexGardenTextField.setBounds(160, 320, 194, 20);

        postCodeTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                postCodeTextFieldActionPerformed(evt);
            }
        });
        newMember.add(postCodeTextField);
        postCodeTextField.setBounds(160, 350, 194, 20);

        genderLabel.setText("Gender");
        newMember.add(genderLabel);
        genderLabel.setBounds(10, 80, 35, 14);

        genderGroup.add(femaleRadioButton);
        femaleRadioButton.setText("Female");
        newMember.add(femaleRadioButton);
        femaleRadioButton.setBounds(210, 80, 59, 23);

        genderGroup.add(maleRadioButton);
        maleRadioButton.setText("Male");
        newMember.add(maleRadioButton);
        maleRadioButton.setBounds(130, 80, 47, 23);

        DOBLabel.setText("D.O.B");
        newMember.add(DOBLabel);
        DOBLabel.setBounds(10, 110, 29, 14);

        ddComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "DD", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        ddComboBox.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                ddComboBoxItemStateChanged(evt);
            }
        });
        newMember.add(ddComboBox);
        ddComboBox.setBounds(130, 110, 39, 30);

        mmComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "MM", "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC" }));
        mmComboBox.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                mmComboBoxItemStateChanged(evt);
            }
        });
        mmComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mmComboBoxActionPerformed(evt);
            }
        });
        newMember.add(mmComboBox);
        mmComboBox.setBounds(190, 110, 60, 30);

        yyyyComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "YYYY", "1960", "1961", "1962", "1963", "1964", "1965", "1966", "1967", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "1980", "1981", "1982", "1983", "1984", "1985", "1986", "1987", "1988", "1989", "1990", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010" }));
        yyyyComboBox.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                yyyyComboBoxItemStateChanged(evt);
            }
        });
        yyyyComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                yyyyComboBoxActionPerformed(evt);
            }
        });
        newMember.add(yyyyComboBox);
        yyyyComboBox.setBounds(260, 110, 100, 30);

        streetRoadLAbel.setText("Street/Road");
        newMember.add(streetRoadLAbel);
        streetRoadLAbel.setBounds(390, 290, 59, 14);

        cityLabel.setText("City");
        newMember.add(cityLabel);
        cityLabel.setBounds(390, 320, 19, 14);

        stateLabel.setText("State");
        newMember.add(stateLabel);
        stateLabel.setBounds(390, 350, 26, 14);

        streetRoadTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                streetRoadTextFieldActionPerformed(evt);
            }
        });
        newMember.add(streetRoadTextField);
        streetRoadTextField.setBounds(480, 290, 198, 20);
        newMember.add(cityTextField);
        cityTextField.setBounds(480, 320, 198, 20);
        newMember.add(stateTextField);
        stateTextField.setBounds(480, 350, 198, 20);

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jTextArea1.setText("Please fill in all the columns.\nDetails of member are confidential.\n\nIC number will be used for varification \npurpose in future if needed.\n\nContact number is only used if \nany situation occurs. \nStictly no advertisement.\n\n\t- Management");
        jScrollPane1.setViewportView(jTextArea1);

        newMember.add(jScrollPane1);
        jScrollPane1.setBounds(380, 10, 290, 220);

        jLabel1.setText("Last Name");
        newMember.add(jLabel1);
        jLabel1.setBounds(10, 50, 50, 14);
        newMember.add(lastNameTextField);
        lastNameTextField.setBounds(130, 50, 202, 20);
        newMember.add(jSeparator1);
        jSeparator1.setBounds(60, 270, 620, 10);

        jLabel2.setText("Example: 881221-13-5718");
        newMember.add(jLabel2);
        jLabel2.setBounds(140, 220, 127, 14);

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMAGE_REPOSITORY/Background3 copy.jpg"))); // NOI18N
        newMember.add(jLabel3);
        jLabel3.setBounds(0, 0, 900, 500);

        newMember.setBounds(0, 0, 900, 500);
        jLayeredPane1.add(newMember, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 900, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 500, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>

    private void mmComboBoxActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
}

    private void mmComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {

        verifyDate((String)ddComboBox.getSelectedItem(),(String)mmComboBox.getSelectedItem(),(String)yyyyComboBox.getSelectedItem());
    }

    private void streetRoadTextFieldActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
}

    private void postCodeTextFieldActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
}

    private void mainMenukButtonActionPerformed(java.awt.event.ActionEvent evt) {

        new MAIN_MENU().setVisible(true);
        this.setVisible(false);
}

    private void complexGardenTextFieldActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
}

    private void ddComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {

        verifyDate((String)ddComboBox.getSelectedItem(),(String)mmComboBox.getSelectedItem(),(String)yyyyComboBox.getSelectedItem());
    }

    private void contactNumberTextFieldActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
}

    private void icNumberTextFieldFocusLost(java.awt.event.FocusEvent evt) {
        // TODO add your handling code here:
}

    private void icNumberTextFieldActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
}

    private void icNumberTextFieldCaretUpdate(javax.swing.event.CaretEvent evt) {
        // TODO add your handling code here:
}

    private void firstNameTextFieldInputMethodTextChanged(java.awt.event.InputMethodEvent evt) {

}

    private void firstNameTextFieldCaretPositionChanged(java.awt.event.InputMethodEvent evt) {

}

    private void firstNameTextFieldActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
}

    private void addButtonActionPerformed(java.awt.event.ActionEvent evt) {



        verifyDate((String)ddComboBox.getSelectedItem(),(String)mmComboBox.getSelectedItem(),(String)yyyyComboBox.getSelectedItem());

        String member_code = "";

        String query2 = "select MEMBER_CODE from MEMBER";

        //      --------------------------------------------------------------------------------------------------

        try {
            DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
            Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","javaproject","javaproject");

            //      --------------------------------------------------------------------------------------------------

            Statement stmt = con.createStatement();
            ResultSet rs = stmt.executeQuery(query2);

            while(rs.next()) {
                member_code = rs.getString("MEMBER_CODE").trim();}

            //      --------------------------------------------------------------------------------------------------

            System.out.println("OK!");
        }//end try

        catch (Exception e) {
            System.out.println("error occurred");}

        //      --------------------------------------------------------------------------------------------------

        String ErrorType = "";
        Boolean addressChecked = false;

        String x = (String)firstNameTextField.getText().trim();
        System.out.println("x = " + x);
        if (x == null ? "" == null : x.equals("")) {
            ErrorType += "\nFirst name not entered.";
            error = true;
        }

        if (lastNameTextField.getText() == null ? "" == null : lastNameTextField.getText().equals("")) {
            ErrorType += "\nLast name not entered.";
            error = true;
        }

        if (!(maleRadioButton.isSelected()||femaleRadioButton.isSelected())) {
            ErrorType += "\nGender not selected.";
            error = true;
        }

        if ((ddComboBox.getSelectedItem() == "DD")||(mmComboBox.getSelectedItem() == "MM")||(yyyyComboBox.getSelectedItem() == "YYYY")) {
            ErrorType += "\nDOB not selected.";
            error = true;
        }

        if (contactNumberTextField.getText() == null ? "" == null : contactNumberTextField.getText().equals("")) {
            ErrorType += "\nContact not entered.";
            error = true;
        }

        if (icNumberTextField.getText() == null ? "" == null : icNumberTextField.getText().equals("")) {
            ErrorType += "\nIC number not entered.";
            error = true;
        }

        if (apartmentHouseNoTextField.getText() == null ? "" == null : apartmentHouseNoTextField.getText().equals("")) {
            if (!addressChecked) {
                ErrorType += "\nAddress incomple.";
                error = true;
                addressChecked = true;
            }
        }

        if (complexGardenTextField.getText() == null ? "" == null : complexGardenTextField.getText().equals("")) {
            if (!addressChecked) {
                ErrorType += "\nAddress incomple.";
                error = true;
                addressChecked = true;
            }
        }

        if (streetRoadTextField.getText() == null ? "" == null : streetRoadTextField.getText().equals("")) {
            if (!addressChecked) {
                ErrorType += "\nAddress incomple.";
                error = true;
                addressChecked = true;
            }
        }

        if (postCodeTextField.getText() == null ? "" == null : postCodeTextField.getText().equals("")) {
            if (!addressChecked) {
                ErrorType += "\nAddress incomple.";
                error = true;
                addressChecked = true;
            }
        }

        if (cityTextField.getText() == null ? "" == null : cityTextField.getText().equals("")) {
            if (!addressChecked) {
                ErrorType += "\nAddress incomple.";
                error = true;
                addressChecked = true;
            }
        }

        if (stateTextField.getText() == null ? "" == null : stateTextField.getText().equals("")) {
            if (!addressChecked) {
                ErrorType += "\nAddress incomple.";
                error = true;
                addressChecked = true;
            }
        }

        if (!error) {

            int code = Integer.parseInt(member_code) + 1;
            String fname = firstNameTextField.getText();
            String lname = lastNameTextField.getText();
            String gender = "";

            if (maleRadioButton.isSelected())
                gender = "M";
            else gender = "F";

            String dob      = ddComboBox.getSelectedItem()+"-"+mmComboBox.getSelectedItem()+"-"+yyyyComboBox.getSelectedItem();
            String contact     = contactNumberTextField.getText();
            String icno     = icNumberTextField.getText();
            String houseno  = apartmentHouseNoTextField.getText();
            String garden   = complexGardenTextField.getText();
            String street   = streetRoadTextField.getText();
            String postcode = postCodeTextField.getText();
            String city     = cityTextField.getText();
            String state    = stateTextField.getText();
            int credit      = 0;

            String query = ("insert into MEMBER values ('" + code + "', '" + fname + "', '" + lname + "', '" + gender + "', '" + dob + "', '" + contact + "', '" + icno + "', '" + houseno + "', '" + garden + "', '" + street + "', '" + postcode + "', '" + city + "', '" + state + "', '" + credit + "')");

            System.out.println(query);


            //      --------------------------------------------------------------------------------------------------

            try {
                DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","javaproject","javaproject");

                //      --------------------------------------------------------------------------------------------------

                Statement stmt = con.createStatement();
                ResultSet rs = stmt.executeQuery(query);

                //      --------------------------------------------------------------------------------------------------

                System.out.println("OK!");
                JOptionPane.showMessageDialog(null, "Member code: " + code + "\nCreation successful!.", "SYSTEM MESSAGE!", JOptionPane.INFORMATION_MESSAGE);
                this.setVisible(false);
                new MAIN_MENU().setVisible(true);
            }//end try

            catch (Exception e) {
                System.out.println("error occurred");
                JOptionPane.showMessageDialog(null, "Add failed - some required fields are missing, or bad input.", "ERROR!", JOptionPane.WARNING_MESSAGE);
            }

            //      --------------------------------------------------------------------------------------------------


        }//end if no error

        else {
            JOptionPane.showMessageDialog(null, "Creation unsuccessful! \nPlease check your input.\n" + ErrorType, "ERROR!", JOptionPane.WARNING_MESSAGE);
        }
}

    private void yyyyComboBoxActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
}

    private void yyyyComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {

        verifyDate((String)ddComboBox.getSelectedItem(),(String)mmComboBox.getSelectedItem(),(String)yyyyComboBox.getSelectedItem());
    }
Boolean error = false;
 public void verifyDate (String day, String month, String year) {
        

     error = false;

        if (day.equals("DD")||month.equals("MM")||year.equals("YYYY")) {
            error = false;
        }

        else {
            int Day = Integer.parseInt(day.trim());
            int Year = Integer.parseInt(year.trim());

            if (month.equals("FEB")||month.equals("APR")||month.equals("JUN")
                                   ||month.equals("SEP")||month.equals("NOV")) {
                if(month.equals("FEB")) {
                    if(Year%4 == 0) {
                        if(Day > 29) {
                            error = true;
                            
                        }
                    }//end if leap year

                    else {
                        if(Day > 28) {
                            error = true;
                        }
                    }//end else (not leap year)
                }//end if feb

                else {
                    if (Day > 30) {
                        error = true;
                    }
                }//end else (april, jun, sep, nov)
            }//end if (jan, mar, may, jul, aug, oct, dec)

            else
                error = false;

        }//end else

            if(error)
        {
            JOptionPane.showMessageDialog(null, "Invalid date entered. \nPlease try again.", "ERROR!", JOptionPane.WARNING_MESSAGE);

        }

    }//end of varify date
    
    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MEMBER_ADD().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify
    private javax.swing.JLabel DOBLabel;
    private javax.swing.JLabel ICNumberLabel;
    private javax.swing.JButton addButton;
    private javax.swing.JLabel addressLabel;
    private javax.swing.JTextField apartmentHouseNoTextField;
    private javax.swing.JLabel apartmentHouseNumberLabel;
    private javax.swing.JLabel cityLabel;
    private javax.swing.JTextField cityTextField;
    private javax.swing.JLabel complexGardenLabel;
    private javax.swing.JTextField complexGardenTextField;
    private javax.swing.JLabel contactNumberLabel;
    private javax.swing.JTextField contactNumberTextField;
    private javax.swing.JComboBox ddComboBox;
    private javax.swing.JRadioButton femaleRadioButton;
    private javax.swing.JTextField firstNameTextField;
    private javax.swing.ButtonGroup genderGroup;
    private javax.swing.JLabel genderLabel;
    private javax.swing.JTextField icNumberTextField;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField lastNameTextField;
    private javax.swing.JButton mainMenukButton;
    private javax.swing.JRadioButton maleRadioButton;
    private javax.swing.JComboBox mmComboBox;
    private javax.swing.JLabel nameLabel;
    private javax.swing.JPanel newMember;
    private javax.swing.JLabel postCodeLabel;
    private javax.swing.JTextField postCodeTextField;
    private javax.swing.JLabel stateLabel;
    private javax.swing.JTextField stateTextField;
    private javax.swing.JLabel streetRoadLAbel;
    private javax.swing.JTextField streetRoadTextField;
    private javax.swing.JComboBox yyyyComboBox;
    // End of variables declaration

}
